<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<jsp:directive.page import="com.anhry.app.safety.util.Util"/>
<%@ include file="/WEB-INF/pages/share/taglib.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>修改密码</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="<%=basePath+Util.SKIN%>/css/right.css" type="text/css" rel="stylesheet">
	<script type="text/javascript" src="<%=basePath%>/js/jquery-1.7.2.js"></script>
	<script type="text/javascript" src="<%=basePath%>/js/dbdialog/lhgdialog.min.js<%=Util.LHGDIALOG%>"></script>
	<script type="text/javascript" src="<%=basePath%>/js/check_jquery.js"></script>
	<script type="text/javascript">
		function inrandRefresh(){
    		var inrandSpanM = document.getElementById("inrandSpan");
    		inrandSpanM.innerHTML='<img src="<%=basePath%>/login/image.jsp" onclick="javascript:inrandRefresh();" style="cursor:hand" alt="看不清，换一张图片"/>';
    	}
    	function check(){
			if(checkspace(document.pwdform.rand.value))  {		
				alert("对不起，验证码不能为空，请重新输入！");
				document.pwdform.rand.focus();
				return false;
			}
			return true;
		}
	</script>
  </head>
  
  <body>
	<div  class="body-box">
		<div class="map">
			<div class="map_con">
				您当前的位置：修改密码
			</div>
			
		</div>
		<div id="container">
			<form action="<%=basePath%>/admin/sys_userPwdSave.action" method="post" name="pwdform">
		    	<table border="0" cellspacing="0" cellpadding="0"  width="100%" class="info_table">
					<tr>
						<td colspan="4" class="title_li">修改密码</td>
					</tr>
					<tr>
						<td width="15%" class="title_td">用户名：</td>
						<td>
							&nbsp;&nbsp;<s:property value="#session.adminuser.userName"/>
						</td>
					</tr>
					<tr>
						<td width="15%" class="title_td">原密码：</td>
						<td>
							<input type="password" name="userPwdOld" id="bit1"><span class="note4">*</span>
							<font color="red"><s:property value="userPwdOldErr"/></font>
						</td>
					</tr>
					<tr>
						<td width="15%" class="title_td">新密码：</td>
						<td>
							<input type="password" name="userPwd" id="userpwd1"><span class="note4">*</span>
						</td>
					</tr>
					<tr>
						<td width="15%" class="title_td">确认密码：</td>
						<td>
							<input type="password" name="cofimUserPwd" id="userpwd2"><span class="note4">*</span>
						</td>
					</tr>
					<tr>
						<td width="15%" class="title_td">验证码：</td>
						<td>
							<input id="rand" type="text" name="rand" class="input1"/><span id="inrandSpan"><img src="<%=basePath%>/login/image.jsp" onclick="javascript:inrandRefresh();" style="cursor:hand" alt="看不清，换一张图片"/></span>
							<font color="red"><s:property value="randErr"/></font>
						</td>
					</tr>
					<tr>
						<td colspan="4" align="center">
							<center>
							<input type="submit" name="btntj" class="link_input" id="btnSubmit1" value="提 交" onclick="return toSubmit();">
							<input type="reset" name="btnset" class="link_input" id="btnset" value="重 置">
							</center>
						</td>
					</tr>
				</table>
			</form>
		</div>
	</div>
  </body>
  <s:if test="%{tip!=null}">
	<script>
		$.dialog({
			title:'提示',
		    content: '${tip}',
		    cancelVal: '确定',
		    cancel: true /*为true等价于function(){}*/
		});
	</script>
</s:if>
</html>
